package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.MeetingRoom;
import com.zhijian.medical.entity.vo.request.MeetingRoomSearchVo;
import com.zhijian.medical.entity.vo.response.MeetingRoomVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MeetingRoomMapper {
    int deleteByPrimaryKey(Long id);

    int insert(MeetingRoom record);

    int insertSelective(MeetingRoom record);

    MeetingRoom selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MeetingRoom record);

    int updateByPrimaryKey(MeetingRoom record);

    int count(MeetingRoomSearchVo meetingRoomSearchVo);

    List<MeetingRoomVo> selectList(MeetingRoomSearchVo meetingRoomSearchVo);

    MeetingRoomVo selectVoById(Long id);

    int insertBatch(@Param("entities") List<MeetingRoom> entities);

    /**
     * 根据名称查询
     *
     * @param name
     * @return
     */
    MeetingRoomVo selectByName(String name);
}